import Vue from 'vue'
import LoadingComponent from './Loading.vue'

const TipInit = function () {
  const Tip = Vue.extend(LoadingComponent)
  return function TipBox(title = "已添加到我喜欢的音乐") {
    let tip = new Tip();
    tip.title = title;
    tip.$mount();
  }
}
export default {
  install: function (Vue) {
    Vue.prototype.$box = TipInit()
  }
}
